package simorg.controller;

import java.util.HashMap;

import simorg.actions.Action;
import simorg.actions.CourseDelete;
import simorg.actions.CourseList;
import simorg.actions.CourseNew;
import simorg.actions.CourseSave;
import simorg.actions.CourseView;

public class CourseController extends Controller {

	public static final String controllerName = "course";
	public CourseController() {
		this.name = controllerName;
		this.actions = new HashMap<String, Action>();
		this.actions.put(CourseView.actionName, new CourseView());
		this.actions.put(CourseSave.actionName, new CourseSave());
		this.actions.put(CourseNew.actionName, new CourseNew());
		this.actions.put(CourseDelete.actionName, new CourseDelete());
		this.actions.put(CourseList.actionName, new CourseList());
		this.defaultAction = new CourseView();
	}
}
